package day02;

import java.math.BigDecimal;
import java.util.Scanner;

public class windy1 {
    public static void main(String[] args) {
        System.out.println("我要开始学习JAVA了，今天又是知识能力满满的一天~");

        System.out.println("海绵宝宝");
        System.out.println(3);
        System.out.println("海底");
        System.out.println(true);
        System.out.println(10.99);

        String name = "派大星";
        int year = 1;
        double salary = 10000.0289;
        System.out.println(name+": 这是我学习JAVA的第"+year+"年，我的期望薪资是"+salary);

        int number1 = 1;
        int number2 = 2;
        System.out.println(number1+number2);

        double fatherHeight = 173;
        double motherHeight = 158;
        double sonHeight = (fatherHeight + motherHeight) * 1.08 / 2;
        double daughterHeight = (fatherHeight*0.93 + motherHeight) / 2;
        System.out.println("儿子预计身高" + sonHeight + "厘米");
        System.out.println("女儿预计身高" + daughterHeight + "厘米");

        int red = 25, blue = 30;
        red = red*2+10;
        blue =blue*2;
        System.out.println(red==blue);

        double money1=24+8+3;
        money1=(money1<=30?money1:money1*0.8);
        double money2=16+8+3;
        double money=money1<money2?money1:money2;
        System.out.println(money);

       /* System.out.println("请输入第一个整数：");
        int a = new Scanner(System.in).nextInt();
        System.out.println("请输入第二个整数：");
        int b = new Scanner(System.in).nextInt();
        System.out.println("请输入第三个整数：");
        int c = new Scanner(System.in).nextInt();
        int max=a>b ? a : b;
        max=max>c ? max:c;
        System.out.println("三个数的最大值是:"+max);*/

        System.out.println("请输入第一个整数: ");
        int a = new Scanner(System.in).nextInt();
        System.out.println("请输入第二个整数: ");
        int b = new Scanner(System.in).nextInt();
        System.out.println("请输入第三个整数：");
        int c = new Scanner(System.in).nextInt();
        int max=a>b ? a:b;

        max = max>c?max:c;
        System.out.println("你输入的三个数的最大值是："+max);












    }
}
